#include <iostream>
#include <vector>
#include <algorithm>

int main()
{
	std::vector<int> a(3);
	for (int i = 0; i < 3; i++)
		std::cin >> a[i];
	std::sort(a.begin(), a.end());
	std::cout << a[0];
	for (int i = 1; i < 3; i++)
		std::cout << "->" << a[i];
	std::cout << '\n';
}

